% clc
% sranaly.analyModelsDegeneration
clear

solver_mode = 'gpu 1';

% bForceUpdate = true;
bForceUpdate = false;

% ImgSet = 'Set14';
% ImgSet = 'Set5';
% ImgSet = {'Set5', 'Set14'};
% ImgSet = 'General100';
% ImgSet = 'B100';
% ImgSet = 'Urban100';
ImgSet = {'Set5', 'Set14', 'B100', 'Urban100'};

startingParams = 'MSRA';
startingNetList = {}; % 'Bicubic';
% startingNetList = 'VDSR60';
% startingNetList = {'Bicubic', 'SRCNN', 'FSRCNN', 'RED', 'VDSR0', 'DRRN'};
% startingNetList = {'VDSR1', 'VDSR2', 'VDSR3'};
% startingNetList = {'VDSR2', 'VDSR3'};
% startingNetList = {'VDSR1', 'VDSR03', 'VDSR18'};
% startingNetList = 'VDSR0';
% startingNetList = {'VDSR35'};
% startingNetList = {'VDSR03', 'VDSR19', 'VDSR35'};
% startingNetList = {'VDSR03', 'VDSR18'};
% startingNetList = 'FSRCNN';
% startingNetList = {'Bicubic', 'FSRCNN'};

for scale = 2 : 4
    NetList = srmodel.getNetList(scale, startingParams, startingNetList);
    fprintf('================== scale = %d ==================\n', scale);
    for j = 1 : length(NetList)
        %disp(NetList{j}.startingNet)
        sranaly.analyCascading(ImgSet, NetList{j}, solver_mode, bForceUpdate);
    end
end

return

%%
clear
scales = 2:4;%[2 4]; % 2 : 4;
startingParams = 'MSRA';
% ImgSet = 'Set5';
ImgSet = 'Set14';
% ImgSet = {'B100', 'Urban100'};
% close all
PlotIdx = 1;%[1, 2];
sranaly.plotCascading(startingParams, scales, ImgSet, PlotIdx)
